﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using BussinessLogic;

namespace SchoolManagement.Forms
{
    public partial class CursosDocente : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ImageButtonStudent_Click(object sender, ImageClickEventArgs e)
        {
            MostrarEstudiantes();
        }

        private void MostrarEstudiantes()
        {
            Session["IdAsignaturaDocente"] = 1;
            ObjectDataSourceEstudiantes.Select();
            GridViewEstudiantes.DataBind();
        }

        protected void ImageButtonP1_Click(object sender, ImageClickEventArgs e)
        {
            string comandIndex = ((ImageButton)sender).CommandArgument;
            int index = 0;
            if (!int.TryParse(comandIndex, out index)) return;
            Session["IdAsignaturaDocente"] = 1;
            Session["IdPeriodo"] = index;


            ObjectDataSourceNotas.Select();
            GridViewNotas.DataBind();
        }


    }
}
